import requests
def get_header():
    url = "http://ihrm-test.itheima.net/api/sys/login"
    body={"mobile":"13800000002","password":"123456"}
    resp=requests.post(url=url,json=body)
    token=resp.json().get("data")
    header={"Content-Type": "application/json","Authorization":"Bearer "+ token}
    return header
if __name__ == '__main__':
    get_header()
